package org.jsola.hr.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.jsola.core.vo.BaseVO;

import java.util.Date;
import java.util.List;

import static org.jsola.core.example.BaseExample.E_GMT_CREATE;
import static org.jsola.core.example.BaseExample.E_GMT_MODIFIED;
import static org.jsola.core.example.BaseExample.E_ID;
import static org.jsola.core.example.BaseExample.N_GMT_CREATE;
import static org.jsola.core.example.BaseExample.N_GMT_MODIFIED;
import static org.jsola.core.example.BaseExample.N_ID;
import static org.jsola.hr.example.EmpNoticeExample.E_COMPANY_ID;
import static org.jsola.hr.example.EmpNoticeExample.E_CONTENT;
import static org.jsola.hr.example.EmpNoticeExample.E_CONTENT_HAS_STYLE;
import static org.jsola.hr.example.EmpNoticeExample.E_CREATE_USER_NAME;
import static org.jsola.hr.example.EmpNoticeExample.E_FILE;
import static org.jsola.hr.example.EmpNoticeExample.E_FORMAL_TYPE;
import static org.jsola.hr.example.EmpNoticeExample.E_IS_ONLINE;
import static org.jsola.hr.example.EmpNoticeExample.E_NOTICE_IDS;
import static org.jsola.hr.example.EmpNoticeExample.E_NOTICE_TYPE;
import static org.jsola.hr.example.EmpNoticeExample.E_NO_READ_COUNT;
import static org.jsola.hr.example.EmpNoticeExample.E_NO_READ_EMP_IDS;
import static org.jsola.hr.example.EmpNoticeExample.E_OFFLINE_DATE;
import static org.jsola.hr.example.EmpNoticeExample.E_PROPS;
import static org.jsola.hr.example.EmpNoticeExample.E_PUBLISH_DATE;
import static org.jsola.hr.example.EmpNoticeExample.E_PUBLISH_EMP_ID;
import static org.jsola.hr.example.EmpNoticeExample.E_PUBLISH_EMP_RANGE;
import static org.jsola.hr.example.EmpNoticeExample.E_PUBLISH_EMP_RANGE_IS_ALL;
import static org.jsola.hr.example.EmpNoticeExample.E_PUBLISH_EMP_TYPE;
import static org.jsola.hr.example.EmpNoticeExample.E_PUBLISH_EMP_TYPE_IS_ALL;
import static org.jsola.hr.example.EmpNoticeExample.E_PUBLISH_USER_ID;
import static org.jsola.hr.example.EmpNoticeExample.E_READ_COUNT;
import static org.jsola.hr.example.EmpNoticeExample.E_READ_EMP_IDS;
import static org.jsola.hr.example.EmpNoticeExample.E_READ_STATUS;
import static org.jsola.hr.example.EmpNoticeExample.E_STATUS;
import static org.jsola.hr.example.EmpNoticeExample.E_TITLE;
import static org.jsola.hr.example.EmpNoticeExample.N_COMPANY_ID;
import static org.jsola.hr.example.EmpNoticeExample.N_CONTENT;
import static org.jsola.hr.example.EmpNoticeExample.N_CONTENT_HAS_STYLE;
import static org.jsola.hr.example.EmpNoticeExample.N_CREATE_USER_NAME;
import static org.jsola.hr.example.EmpNoticeExample.N_FILE;
import static org.jsola.hr.example.EmpNoticeExample.N_FORMAL_TYPE;
import static org.jsola.hr.example.EmpNoticeExample.N_IS_ONLINE;
import static org.jsola.hr.example.EmpNoticeExample.N_NOTICE_IDS;
import static org.jsola.hr.example.EmpNoticeExample.N_NOTICE_TYPE;
import static org.jsola.hr.example.EmpNoticeExample.N_NO_READ_COUNT;
import static org.jsola.hr.example.EmpNoticeExample.N_NO_READ_EMP_IDS;
import static org.jsola.hr.example.EmpNoticeExample.N_OFFLINE_DATE;
import static org.jsola.hr.example.EmpNoticeExample.N_PROPS;
import static org.jsola.hr.example.EmpNoticeExample.N_PUBLISH_DATE;
import static org.jsola.hr.example.EmpNoticeExample.N_PUBLISH_EMP_ID;
import static org.jsola.hr.example.EmpNoticeExample.N_PUBLISH_EMP_RANGE;
import static org.jsola.hr.example.EmpNoticeExample.N_PUBLISH_EMP_RANGE_IS_ALL;
import static org.jsola.hr.example.EmpNoticeExample.N_PUBLISH_EMP_TYPE;
import static org.jsola.hr.example.EmpNoticeExample.N_PUBLISH_EMP_TYPE_IS_ALL;
import static org.jsola.hr.example.EmpNoticeExample.N_PUBLISH_USER_ID;
import static org.jsola.hr.example.EmpNoticeExample.N_READ_COUNT;
import static org.jsola.hr.example.EmpNoticeExample.N_READ_EMP_IDS;
import static org.jsola.hr.example.EmpNoticeExample.N_READ_STATUS;
import static org.jsola.hr.example.EmpNoticeExample.N_STATUS;
import static org.jsola.hr.example.EmpNoticeExample.N_TITLE;

/**
 * 员工通知
 *
 * @author zhr
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "【员工通知】列表展示对象")
@Data
public class EmpNoticeListVO extends BaseVO {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(notes = N_ID, example = E_ID)
    private String id;

    @ApiModelProperty(notes = N_READ_EMP_IDS, example = E_READ_EMP_IDS)
    private String readEmpIds;

    @ApiModelProperty(notes = N_NO_READ_EMP_IDS, example = E_NO_READ_EMP_IDS)
    private String noReadEmpIds;

    @ApiModelProperty(notes = N_READ_COUNT, example = E_READ_COUNT)
    private Integer readCount;

    @ApiModelProperty(notes = N_NO_READ_COUNT, example = E_NO_READ_COUNT)
    private Integer noReadCount;

    @ApiModelProperty(notes = N_FILE, example = E_FILE)
    private String file;

    @ApiModelProperty(notes = N_COMPANY_ID, example = E_COMPANY_ID)
    private String companyId;

    @ApiModelProperty(notes = N_TITLE, example = E_TITLE)
    private String title;

    @ApiModelProperty(notes = N_CONTENT, example = E_CONTENT)
    private String content;

    @ApiModelProperty(notes = N_CONTENT_HAS_STYLE, example = E_CONTENT_HAS_STYLE)
    private String contentHasStyle;

    @ApiModelProperty(notes = N_PUBLISH_DATE, example = E_PUBLISH_DATE)
    private Date publishDate;

    @ApiModelProperty(notes = N_PUBLISH_EMP_ID, example = E_PUBLISH_EMP_ID)
    private String publishEmpId;

    @ApiModelProperty(notes = N_PUBLISH_USER_ID, example = E_PUBLISH_USER_ID)
    private String publishUserId;

    @ApiModelProperty(notes = N_PUBLISH_EMP_RANGE_IS_ALL, example = E_PUBLISH_EMP_RANGE_IS_ALL)
    private Boolean publishEmpRangeIsAll;

    @ApiModelProperty(notes = N_PUBLISH_EMP_RANGE, example = E_PUBLISH_EMP_RANGE)
    private String publishEmpRange;

    @ApiModelProperty(notes = N_PUBLISH_EMP_TYPE_IS_ALL, example = E_PUBLISH_EMP_TYPE_IS_ALL)
    private Boolean publishEmpTypeIsAll;

    @ApiModelProperty(notes = N_PUBLISH_EMP_TYPE, example = E_PUBLISH_EMP_TYPE)
    private String publishEmpType;

    @ApiModelProperty(notes = N_FORMAL_TYPE, example = E_FORMAL_TYPE)
    private Integer formalType;

    @ApiModelProperty(notes = N_PROPS, example = E_PROPS)
    private String props;

    @ApiModelProperty(notes = N_NOTICE_IDS, example = E_NOTICE_IDS)
    private String noticeIds;

    @ApiModelProperty(notes = N_CREATE_USER_NAME, example = E_CREATE_USER_NAME)
    private String createUserName;

    @ApiModelProperty(notes = N_READ_STATUS, example = E_READ_STATUS)
    private Integer readStatus;

    @ApiModelProperty(notes = N_IS_ONLINE, example = E_IS_ONLINE)
    private Boolean isOnline;

    @ApiModelProperty(notes = N_OFFLINE_DATE, example = E_OFFLINE_DATE)
    private Date offlineDate;

    @ApiModelProperty(notes = N_NOTICE_TYPE, example = E_NOTICE_TYPE)
    private String noticeType;

    @ApiModelProperty(notes = N_STATUS, example = E_STATUS)
    private Integer status;

    @ApiModelProperty(notes = N_GMT_CREATE, example = E_GMT_CREATE)
    private Date gmtCreate;

    @ApiModelProperty(notes = N_GMT_MODIFIED, example = E_GMT_MODIFIED)
    private Date gmtModified;

    @ApiModelProperty(notes = "员工名称")
    private String empName;

    @ApiModelProperty(notes = "已读员工信息")
    private List<EmpInformation> readEmpInformation;

    @ApiModelProperty(notes = "未读员工信息")
    private List<EmpInformation> NoReadEmpInformation;


    @Data
    public static class EmpInformation {

        @ApiModelProperty(notes = "员工名称")
        private String empName;

        @ApiModelProperty(notes = "员工头像")
        private String avatar;

    }

}

